<template>
   <div id="app">
       父组件 <br />
       {{num}} 
       <button @click='favbtn'>
           {{fav?"ok":"no"}}
       </button>
   </div>
</template>
<script setup>
import mixin from "./mixins/mixin.js"
console.log(1,mixin)
let {num,fav,favbtn} = mixin()
console.log(2,num,fav,favbtn)
</script>
<style>
</style>


 
 
